package cn.dengta.webapp.user.entity.activity;

import cn.dengta.webapp.base.entity.TimeBasedEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 圣诞节拼图日志
 *
 * @author xy
 * @since 2022-12-14
 */
@Setter
@Getter
@Accessors(chain = true)
@TableName("act_christmas_make_log")
public class ActChristmasMakeLog extends TimeBasedEntity {

	private static final long serialVersionUID = 1L;
	/** 用户id */
	Long userId;
	/** 奖励 */
	Integer reward;
	/** 状态：0=初始化；1=已领取 */
	Integer status;

	public static final String REWARD = "reward";
	public static final String STATUS = "status";

	public static ActChristmasMakeLog of(Long userId, Integer reward) {
		ActChristmasMakeLog log = new ActChristmasMakeLog();
		log.setUserId(userId);
		log.setReward(reward);
		return log;
	}
}
